CXXFLAGS  = -O0 -g -Wall -I../../libbamp/include -fPIC -shared
LDFLAGS   = -L../../libbamp/src -lbamp

SRC_FILES = *.cpp *.hpp
OUT       = data_input_test.so sound_output_test.so decoder_test.so \
            dsp_test.so playlist_test.so

.PHONY: all clean 

all: $(OUT)

%.so: %.cpp
	$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)

clean:
	rm -f $(LIB_OBJ) $(OUT) .depend

.depend: $(SRC_FILES)
	$(CXX) $(CXXFLAGS) -MM $^ > .depend

-include .depend
